package patten.xingwei.state;

/**
 * Description：角色类
 * Author：zwenzhi
 * Date：2023/10/26 16:43
 */
public class Character {
    //当前状态
    CharacterState characterState;
    //血量上限
    int maxHealth;
    //当前血量
    int health;
    //攻击力
    int attack;;

    public Character( int maxHealth, int health, int attack) {
        this.maxHealth = maxHealth;
        this.health = health;
        this.attack = attack;
    }

    public CharacterState getCharacterState() {
        return characterState;
    }

    public void setCharacterState(CharacterState characterState) {
        this.characterState = characterState;
    }

    public int getMaxHealth() {
        return maxHealth;
    }

    public void setMaxHealth(int maxHealth) {
        this.maxHealth = maxHealth;
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }

    public int getAttack() {
        return attack;
    }

    public void setAttack(int attack) {
        this.attack = attack;
    }
}
